home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
bbs
/
sdl212x.zip
/
SDCREATE.TXT
< prev
next >
Wrap
Text File
|
1996-05-15
|
13KB
|
451 lines
STARDOCK LOCO SCRIPT FILE CREATOR VERSION .01
--------------------------------------------------------------------------
What you need: sdcreat1.exe
A good imagination
Knowledge of a the simple commands
Paper and Pencil
Why the paper and pencil? Well, you should outline what it is you're going
to do before you start writing your program. It'll make the game easier to
create in the long run.
Note: I do all the memory allocation, player updates, and all the serial
port bbs nonsense. You do the writing! It's easy!
--------------------------------------------------------------------------
EDITOR FORMAT: Most of your game will just be filling in text!
--------------------------------------------------------------------------
Command: ________ <-defaults to TEXT command
(Data/Text area)
_______________________________________________________
Line number: _____ <-defaults to current line number
--------------------------------------------------------------------------
COMMANDS: (Easy to use!!! See the quick reference that follows)
--------------------------------------------------------------------------
New Commands: PAUSE, HEAL
Fixed Commands: Bunch of 'em...<G>
Input and output:
SIZE, TEXT, GETKEY, YES/NO, IF KEYx, GOTO, WAIT, ANSI, END
REM, CLRSCR, VIEW
Player goodies:
ADD LP, ADD CR, ADD DR, ADD AR, SUB LP, SUB CR, SUB AR
Built in battles with aliens:
FITE1, FITE2, FITE3, FITE4, FITE5, FITE?
4 Switches you can set for on and off and check them.
A, B, C, D
And more....But you don't need 'em all.
NOTE: Anything with an "<---" is a note in the sample programs. But don't
try to use them in the editor!
--------------------------------------------------------------------------
The following are the simple commands used in the sdcreat1.exe editor.
SIZE ****Must**** be the first line of the program. (Line 0)
This tells Stardock Loco how many lines you have for
memory allocation. (I do all that for you.)
In the editor:
Command: SIZE
(Text/data area)
196___________________________________________________
All you need to do is put the number of lines in your
program in the text/data area.
TEXT A line of text. Fill the data area with what you want
the user to see.
To put colors into the data line, use the following:
`red`
`blue`
`white` All of these can be brightened by
`green` doing the following `bright white`
`yellow`
`cyan`
(Data/Text area)
Example: `cyan`My name is `bright red`Bob. `cyan` Hello!
This will make Bob red, and the rest of the line
cyan, as well as the following lines cyan until you
change the color again.
NOTE: HEAL and PAUSE will not show up in your editor as valid commands,
but they work on line. I have lost the code for the sdcreat1.exe,
and am working on a new version.
HEAL Heals the player completely.
PAUSE
In the editor:
Command: PAUSE
(Text/data area)
50___________________________________________________
This will cause the screen to pause for an amount of time.
This runs in clock cycles of the computer that runs it. You
will have to figure out what a good amount of time is.
GOTO
This causes the game to go to the line specified. (Bad for real
programming, good for this simple script creator.)
***NOTE: It goes to the line specified, but skips that line!!
to go to line 1, you would specify line 0.
Usage:
Command: GOTO
(Text/data area)
9_____________________________________________________
^these are just blanks
This will cause the program you created to go to just after line # 9
and start processing at line 10.
YES/NO
Prompts the user for an answer: Enter [Y/N]:
This prompt is created by me. If it is a Y (upper or lower), it
will do the next line of your program. If it is a N, it will skip
that line and continue.
Example program:
(Line #) (Command) (Data/text area)
0 SIZE 11
1 TEXT I am the king!!! Agree?
2 YES/NO <---if it's yes, it will go to 10
3 GOTO 9 <--starts doing what's at line 10
4 TEXT Awww, what do you know anyway? <G>
5 END
.
.
10 TEXT Good answer!! You get `red`30`cyan` lifepoints!
11 END
This display the "I am the king!!! Agree?" to the user.
Then it prompts "Enter [Y/N]: "
if they answer Y they get 30 lifepoints. If not, the program ends.
END
Stops your script from running. No matter where you are in it.
I will display the following before it quits:
Returning to Stardock Loco.
Enter to continue...
They hit enter, they go Loco.
GETKEY
Gets a key from the user. You have exactly 5 choices for this.
1,2,3,4,5. You have to tell them which ones to use.
Example program:
(Line #) (Command) (Data/text area)
0 SIZE 60
1 TEXT -=* The Plains of G'ar *=-
2 TEXT <1> North
3 TEXT <2> South
4 TEXT Enter your choice:
5 GETKEY <---will accept 1-5, so be careful!
6 IF KEY1
7 GOTO 29 <--starts at line 30!
8 IF KEY2
9 GOTO 49
.
.
30 TEXT You are at the north entrance of the G'ar stronghold...
31 TEXT Do you want to enter?
32 YES/NO
.
.
.
50 TEXT You have come across a G'ar Chieftan!!!
51 FITE1 <----more on this little baby later.
Get the idea? It's very easy. For those of you that are
programmers, you may cringe...<G>
WAIT
This simply stops the display until the user hits the enter key.
It prompts them with the "Enter to Continue: "
CLRSCR
Clears the screen.
--------------------------------------------------------------------------
Adding and subtracting items from a player
--------------------------------------------------------------------------
With all of these commands, you just put the command into the editors command
box, and the amount into the text/data area.
Example:
Command: ADD CR
(text/data area)
1000______________________________________
^this would add 1000 credits to the player.
They are as follows:
ADD CR Add credits
ADD LP lifepoints
ADD DR droids
ADD AR armor
ADD EN energy packs
ADD PC passcards
***This will show on the players monitor:
You receive 10 lifepoints!
SUB CR Subtract credits
SUB LP lifepoints
SUB DR droids
SUB AR armor
SUB EN energy packs
SUB PC passcards
***This will show on the players monitor:
You lose 20 droids!
(if it is greater than what they
have, it will show the amount they have or 0)
I do all the checking and writing of the player files.
IF CR: (credits)
IF EN: (energy packs)
IF DR: (droids)
IF PC: (passcards)
This example would check to see if the player had 1000
credits. If they do, it will do the next line. If they
don't, it will tell them that they do not have enough
credit/droids/energy packs. Then it would skip the next line.
This is good if you are selling something to them.
Command: IF CR
(data/text area)
1000_______________________________________
10 TEXT Buy the droid for $1,000,000?
11 YES/NO
12 GOTO 13
13 END
That GOTO 13 goes to here!-->
14 IF CR 1000000 <--if they don't have it
15 GOTO 16
16 END <--it will tell them not enough $, then end.
That GOTO 16 goes to here!-->
17 TEXT You've bought y